import request from '@/utils/request'

export function listData(query) {
  return request({
    url: `/admin/activityMessage/list`,
    method: 'get'
  })
}

export function sendMessage(form) {
  return request({
    url: `/admin/activityMessage/sendMessage`,
    method: 'post',
    data: form
  })
}

export function addMessage(form) {
  return request({
    url: `/admin/activityMessage/add`,
    method: 'post',
    data: form
  })
}

export function editMessage(form) {
  return request({
    url: `/admin/activityMessage/update`,
    method: 'post',
    data: form
  })
}
